// pages/home/home.js
const {getHomeHttp} = require("../../models/http")
Page({
  data: {
    arr:[]
  },
  onLoad:async function (options) {
    var res = await getHomeHttp()
    var arr = res.data.programs
    console.log(arr)
    arr.forEach(item=>{
      item.coverImgUrl = item.coverUrl
    })
    this.setData({
      arr
    })
  }
})